package com.yxq.mdt.app.modules.market.ui;

import android.os.Bundle;

import androidx.annotation.Nullable;
import androidx.fragment.app.FragmentTransaction;

import com.yxq.mdt.app.R;
import com.yxq.mdt.app.base.BaseActivity;
import com.yxq.mdt.app.modules.market.presenter.MainMarketPresenter;

public class MarketActivity extends BaseActivity<MainMarketPresenter> {

    private MainMarketFragment mainMarketFragment;

    @Override

    public int getLayoutId() {
        return R.layout.activity_market;
    }


    @Override
    public void initView() {
        mainMarketFragment = new MainMarketFragment();
        mainMarketFragment.setCanBack(true);

        FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
        if (!mainMarketFragment.isAdded()) {
            transaction.add(R.id.fl_content, mainMarketFragment);
        }
        transaction.commitAllowingStateLoss();
    }

    @Override
    public void initData(@Nullable Bundle savedInstanceState) {

    }
}
